/*    */ package com.bbcare.oms.plat.controller;
/*    */ 
/*    */ import com.bbcare.oms.plat.entity.Account;
/*    */ import com.bbcare.oms.plat.service.IAccountService;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ import org.springframework.web.bind.annotation.ResponseBody;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/service/account"})
/*    */ public class AccountController
/*    */ {
/*    */   @Autowired
/*    */   private IAccountService accountService;
/*    */   
/*    */   @ResponseBody
/*    */   @RequestMapping({"/accounts"})
/*    */   public List<Account> getAccounts()
/*    */     throws Exception
/*    */   {
/* 23 */     List<Account> list = this.accountService.getAccounts(0, 0);
/* 24 */     return list;
/*    */   }
/*    */ }


